﻿using System.Linq;
namespace MMS.Respository
{

    public partial class MemberInfo : BaseRespository<Model.MemberInfo>, IRespository.IMemberInfo
    {
        public new void Modify(Model.MemberInfo Model, params string[] updateProperties)
        {
            var model = EFFatory.db.Set<Model.MemberInfo>().Where(o => o.MId == Model.MId).FirstOrDefault();
            model.MAddress = Model.MAddress;
            model.MBalances = Model.MBalances;
            model.MBirthday = Model.MBirthday;
            model.MCardId = Model.MCardId;
            model.MConsumption = Model.MConsumption;
            model.MEmail = Model.MEmail;
            model.MGender = Model.MGender;
            model.MId = Model.MId;
            model.MIntegral = Model.MIntegral;
            model.MLId = Model.MLId;
            model.MName = Model.MName;
            model.MOccupation = Model.MOccupation;
            model.MPassword = Model.MPassword;
            model.MPhone = Model.MPhone;
            model.MRemark = Model.MRemark;
            model.MWechat = Model.MWechat;
            EFFatory.db.SaveChanges();


        }
    }
}
